package lab02.Test20;

import java.util.Scanner;

/**
 * Created by tanfei on 2017/10/26.
 */
public class Test {
    public static void main(String[] args) {
       //用户从键盘输入一行含有数字和字符的字符串
        String rusult;
        //从键盘输入数据
        Scanner scanner=new Scanner(System.in);
        rusult =scanner.next();
        System.out.println(rusult);

        //仅仅输出字符串中的全部数字字符
        char tmp;
        int i;
        for (i=0;i<rusult.length();i++) {
            tmp = rusult.charAt(i);
            if (tmp >= '0' && tmp <= '9') {
                System.out.print(tmp);
            }

        }
    }
}
